package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 移动端商品搜索请求对象
 * +----------------------------------------------------------------------
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ProductFrontSearchRequest对象", description = "移动端商品搜索请求对象")
public class ProductFrontSearchRequest implements Serializable {

    private static final long serialVersionUID = -452373239606480650L;

    @ApiModelProperty(value = "搜索关键字")
    private String keyword;

    @ApiModelProperty(value = "分类id")
    private String cid;

    @ApiModelProperty(value = "价格排序", allowableValues = "range[asc,desc]")
    private String priceOrder;

    @ApiModelProperty(value = "销量排序", allowableValues = "range[asc,desc]")
    private String salesOrder;

    @ApiModelProperty(value = "最低价")
    private BigDecimal minPrice;

    @ApiModelProperty(value = "最高价")
    private BigDecimal maxPrice;

    @ApiModelProperty(value = "品牌id")
    private String brandId;

    @ApiModelProperty(value = "商户id")
    private String merId;

    @ApiModelProperty(value = "商品标签id")
    private Integer tagId;


    @ApiModelProperty(value = "省id")
    private String provinceId;

    @ApiModelProperty(value = "市id")
    private String cityId;

    @ApiModelProperty(value = "省id")
    private String bindProvinceId;

    @ApiModelProperty(value = "市id")
    private String bindCityId;


    @ApiModelProperty(value = "用户纬度")
    private Double latitude;

    @ApiModelProperty(value = "用户经度")
    private Double longitude;

    @ApiModelProperty(value = "商品类型：0=普通商品，1=秒杀，2=砍价，3=拼团, 4=视频号, 5-云盘商品,6-卡密商品,7-代认养商品")
    private String productType;

    @ApiModelProperty(value = "是否显示自己的商品", hidden = true)
    private Boolean isShowOwn;

    @ApiModelProperty(value = "详细地址-首页选区设置")
    private String regionNames;

    @ApiModelProperty(value = "地区类型（1:省，2：市，3：区/县，4：乡/镇/街道，5：社区/村，6：小区）-首页选区设置")
    private Integer regionType;

    @ApiModelProperty(value = "所在小区-首页选区设置")
    private String community;

    @ApiModelProperty(value = "所在社区/村-首页选区设置")
    private String tribe;

    @ApiModelProperty(value = "是否顶级分类")
    private Boolean isCidRoot;

}
